
package com.zsrt.day0523.jdbc;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;

public class orcale {

	public static void main(String[] args) throws Exception {
		String url ="jdbc:oracle:thin:@127.0.0.1:1521:xe";
		
		String user="jiamengju";
		String password="123456";
		Connection connection = DriverManager.getConnection(url, user, password);
		Statement sm = connection.createStatement();
		
		//插入
		/*String sql="insert into user_t values(2,'xqq','123')";
		//ResultSet result = sm.executeQuery(sql);
		
		int result = sm.executeUpdate(sql);
		
		sm.close();
		connection.close();
		System.out.println(result);*/
		
		

	}
}
